package cn.silver.module.configuration.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchEnums;
import cn.silver.framework.mybatis.domain.BusEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 字典类型表 sys_dict_type
 *
 * @author Silver Zhou
 */

@Data
@NoArgsConstructor
@Table(name = "sys_dict")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysDict", title = "字典信息对象")
public class SysDict extends BusEntity {

    /**
     * 字典类型
     */
    @Schema(title = "字典编码")
    @TableField(name = "code", searchType = SearchEnums.LIKE, unique = true)
    private String code;

    /**
     * 字典名称
     */
    @Schema(title = "字典名称")
    @TableField(name = "name", searchType = SearchEnums.LIKE, unique = true)
    private String name;
}
